export const checkFloats = /^\d{0,99}\.?\d{0,2}$/;   // 整数或者2位浮点数
export const checkZeroToFive = /^\d{0,5}\.?\d{0,1}$/;   // 0-5
export const checkFive = /^\d{0,5}$/;   // 5位整数
export const isNumber = /^\d+$/; // 只能是数字
export const isEmail = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; // 验证邮箱
export const isMobile = /^(0|86|17951)?(1[3-9][0-9])[0-9]{8}$/; // 验证手机号码
export const isPeopleCode = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;// 验证身份证号码
export const passPort = /^([a-zA-Z]{5,17})|([a-zA-Z0-9]{5,17})$/; // 护照
export const passPort2 = /^[a-zA-Z0-9]{5,17}$/; // 护照
export const isFileName = /^[a-zA-Z\u4e00-\u9fa5_-]+[a-zA-Z0-9_\u4e00-\u9fa5]*$/ // 判断文件名，只能为汉字，数字，英文，下划线，中划线，且数字不能作为开头
//export const isPeopleNoOrPassPort = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)|[a-zA-Z]{5,17}|[a-zA-Z0-9]{5,17}$/
// 密码强度正则，最少6位，包括至少1个大写字母，1个小写字母，1个数字，1个特殊字符
export const checkPassword = /^.*(?=.{6,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*? ]).*$/